package model

import "database/sql"

var db *sql.DB

func InitDb()  {
	_db, err := sql.Open("mysql","root:LsqWSxQt@tcp(120.27.70.63:3306)/pwas?charset=utf8")
	if err != nil {
		panic("连接数据库失败:" + err.Error())
	}
	db = _db
}

